home *** CD-ROM | disk | FTP | other *** search
- /* applec is only defined by MPW C so we can use it to make versions that work
- with MPW C and THINK C
- */
- #ifdef applec
-
- #include <Files.h>
- #endif
-
- pascal Boolean CheckIfInternalUserFunc(short targetVRefNum, long blessedID, long ignored )
- {
- #pragma unused (blessedID)
- #pragma unused (ignored)
-
- HParamBlockRec volInfoPBRec;
- OSErr err;
-
- volInfoPBRec.volumeParam.ioResult = noErr;
- volInfoPBRec.volumeParam.ioCompletion = 0;
- volInfoPBRec.volumeParam.ioNamePtr = 0L;
- volInfoPBRec.volumeParam.ioVRefNum = targetVRefNum;
- volInfoPBRec.volumeParam.ioVolIndex = 0;
- err = PBHGetVInfo( &volInfoPBRec, 0 );
-
- if( err == noErr && volInfoPBRec.volumeParam.ioVDRefNum == -33 )
- return 1;
- else
- return 0;
- }